<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String picUrl = request.getParameter("Picurl");
	//System.out.println("-------.....---"+picUrl);
	session.setAttribute("picUrl",picUrl);
	String defaultPic = "../../resources/photos/1.jpg";	
	if(picUrl!=null)defaultPic =  "../../resources/photos/" +picUrl;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>uploadimage</title>
		
    	<script language="JavaScript"> 
　　		function closeWin() { 
		window.opener.location.reload();
    	window.close();
　　		}
　　		</script>  
	</head>
		<body>	
			<b>当前照片</b>				
				<img id="imgphoto" src="<%=defaultPic%>" alt="" width="120" height="150" />
			<form name="form1" method="post"
				action="/101/servlet/UpLoadUserHeadImage" id="form1"
				enctype="multipart/form-data">
			<table width="75%" border="1" align="center">
				<tr>
					<td>
						<input type="file" name="FILE1" size="30" /> 
					</td>
					<td>
						<input type="submit" name="Submit" value="上传" />
					</td>
					<td>
						<input type="button" value="确定" onclick="javascript:closeWin()"/>
					</td>
				</tr>
				</table>
			</form>	
	  </body>
</html> 